package com.example.demo1103.demo5;


import java.util.function.Supplier;

public class Test {
    public static void main(String[] args) {
        Supplier<String> supplier=()->{
            String s="supplier";
            System.out.println("这里只有一个返回值"+s);
            return s;
        };
        fun(supplier);
    }

    public static  void fun(Supplier<String> supplier){
        supplier.get();
    }
}